#include <QPainter>
#include "dwgobjectitem.h"

DwgObjectItem::DwgObjectItem()
{
    setFlag(QGraphicsItem::ItemIsFocusable,true);		// 初始化图元可以获得焦点
    setFlag(QGraphicsItem::ItemIsMovable,false);		// 初始化图元不可移动
    setFlag(QGraphicsItem::ItemIsSelectable,false);    // 初始化图元不能被选择
}

bool DwgObjectItem::Select()
{
    return false;
}


QRectF DwgObjectItem::boundingRect() const
{
    return QRectF(0,0,0,0);
}

void DwgObjectItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
}
